var mysql = require('mysql')
var connection = mysql.createConnection({
    host:'localhost',
    port:3306,
    user:'test',
    password:'test',
    database:'test'
})
connection.connect()
connection.query('select * from books',(err,result,fields)=>{
    console.log(result)
    console.log(fields)
})




connection.end()